package cn.cpf.app.gobang.modal;

import javax.swing.ImageIcon;
import java.awt.Toolkit;
import java.awt.Image;

/**
 * <b>Description : </b>
 *
 * @author CPF
 * Date: 2020/3/27 15:56
 */
public enum GobangImage {

    WHITE("/img/white.png"),
    BLACK("/img/black.png");

    public final ImageIcon imageIcon;

    GobangImage(String path) {
        Image image = Toolkit.getDefaultToolkit().getImage(GobangImage.class.getResource(path));
        imageIcon = new ImageIcon(image);
    }

}
